@extends('admin.layout.main')

@section('content')
<div class="breadcrumbs ace-save-state" id="breadcrumbs">
<ul class="breadcrumb">
	<li>
		<i class="ace-icon fa fa-home home-icon"></i>
		<a href="#">委托管理</a>
	</li>
	<li class="active"><a href="{{ url('admin/entrust_list') }}">委托列表</a></li>
</ul><!-- /.breadcrumb -->

<div class="nav-search" id="nav-search">
	<form class="form-search">
		<span class="input-icon">
		<input type="text" placeholder="搜索" class="nav-search-input" id="nav-search-input" autocomplete="off" />
			<i class="ace-icon fa fa-search nav-search-icon"></i>
		</span>
	</form>
</div><!-- /.nav-search -->
</div>
<div class="page-content">
	<div class="row">
		<div class="col-xs-12">
			<!-- PAGE CONTENT BEGINS -->
			<div class="row">
				<div class="col-xs-12">
					<div class="clearfix">
						<div class="pull-right tableTools-container"></div>
					</div>
					<div class="table-header">
						{{--<a href="{{ url('admin/currency_add_view') }}">--}}
						{{--<i class="menu-icon fa fa-plus orange"></i>--}}
						{{--<span class="menu-text orange"> 添加币种 </span>--}}
						{{--</a>--}}
					</div>

					<!-- div.table-responsive -->

					<!-- div.dataTables_borderWrap -->
					<div>
						<table id="dynamic-table" class="table table-striped table-bordered table-hover">
							<thead>
								<tr>
									<th>序号</th>
									<th>委托编号</th>
									<th>用户ID</th>
									<th>币种</th>
									<th>类型</th>
									<th>价格</th>

									<th>成交数量</th>
									<th>手续费</th>
									<th>
										<i class="ace-icon fa fa-clock-o bigger-110 hidden-480"></i>
										成交时间
									</th>
									<th>状态</th>



									{{--<th></th>--}}
								</tr>
							</thead>

							<tbody>
							@foreach($data as $key=>$val)
								<tr align="center">
									<td align="center">
										<a href="#">{{$key+1}}</a>
									</td>
									<td align="center">{{$val['number_no']}}</td>
									<td align="center">{{$val['u_name']}}</td>
									<td align="center">{{$val['name_en']}}</td>
									<td  align="center">
										{{\App\Models\Order::$TYPE[$val['type']]}}
									</td>
									<td align="center">{{$val['price']}}</td>

									<td align="center">{{$val['num']}}</td>
									<td align="center">{{$val['proc']}}</td>
									<td align="center">{{$val['created_at']}}</td>
									<td align="center">
										交易完成</td>
								</tr>
							@endforeach

							</tbody>
						</table>
					</div>
				</div>
			</div>
			<!-- PAGE CONTENT ENDS -->
		</div><!-- /.col -->

		<div class="modal-footer no-margin-top">

			{{--{{ $data->links() }}--}}
		</div>
	</div><!-- /.row -->
</div><!-- /.page-content -->

@endsection
